package com.hgw.Demo03_DecoratorPattern.Exercises12_7_5;

/**
 * Data time:2021/12/14 19:44
 * StudentID:2019112118
 * Author:hgw
 * Description: 加摩卡，具体装饰类
 */
public class Mocha extends BeverageDecorator{
    public Mocha(Beverage beverage) {
        super(beverage);
    }

    @Override
    public String getDescription() {
        return super.getDescription()+",摩卡";
    }

    @Override
    public int getCost() {
        return super.getCost()+10;
    }
}
